package com.example.pre.business;

import java.util.List;

import com.example.pre.model.Department;
import com.example.pre.model.vo.DepartmentVO;

/*
 * 部门业务层接口
 */
public interface DepartmentBusiness {

	/**
	 * 创建部门
	 * 
	 * @param name        部门名称
	 * @param description 部门描述
	 * @return 部门实体
	 */
	public Department createDepartment(String name, String description) throws Exception;

	/**
	 * 获取部门下用户
	 * 
	 * @param departmentId 部门id
	 * @return 部门VO实体
	 * @throws Exception
	 */
	public DepartmentVO getDepartmentUsers(int departmentId) throws Exception;

	/**
	 * 获取部门列表
	 */
	public List<Department> getDepartments() throws Exception;

}
